<h1>Listing companies</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Description</th>
  </tr>

<% @companies.each do |company| %>
  <tr>
    <td><%=h company.title %></td>
    <td><%=h company.description %></td>
    <td><%= link_to 'Show', company %></td>
    <td><%= link_to 'Edit', edit_company_path(company) %></td>
    <td><%= link_to 'Destroy', company, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New company', new_company_path %>